from OneModule import one
from TwoModule import two
from ThreeModule import three
from FourMoudle import four
from FiveMoudle import five
from SixMoudle import six
from threading import *
from tkinter import *
from ServerMoudle import server



'''小程序最开始执行的程序，展示的是整个界面'''

def bu():

    windows = Tk()
    windows.title('七七运维工具,QQ交流群:607738147')
    windows.geometry('420x200')
    windows.maxsize(width=420,height=200)

    #按键
    def button1():
        one.windowsone(windows)
    b1 = Button(windows,text='网络检测',font=12,height=2,width=10,bg='red',command=button1)
    b1.grid(row=1,column=0,padx=20,pady=20,ipadx=5,ipady=5)

    def button2():
        two.windowstwo(windows)
    b2 = Button(windows,text='端口检查',font=12,height=2,width=10,bg='red',command=button2)
    b2.grid(row=1,column=1,padx=20,pady=20,ipadx=5,ipady=5)

    def button3():
        three.windowsthree(windows)
    b3 = Button(windows,text='IP归属查询',font=12,height=2,width=10,bg='red',command=button3)
    b3.grid(row=1,column=2,padx=20,pady=20,ipadx=5,ipady=5)

    def button4():
        four.windowsfour(windows)
    b4 = Button(windows,text='中英互译',font=12,height=2,width=10,bg='red',command=button4)
    b4.grid(row=2,column=0,padx=20,pady=20,ipadx=5,ipady=5)

    def button5():
        five.windowsfive(windows)
    b5 = Button(windows,text='本机公网IP',font=12,height=2,width=10,bg='red',command=button5)
    b5.grid(row=2,column=1,padx=20,pady=20,ipadx=5,ipady=5)

    def button7():
        server.windowsserver(windows)
    b7 = Button(windows,text='定时工具',font=12,height=2,width=10,bg='red',command=button7)
    b7.grid(row=2,column=2,padx=20,pady=20,ipadx=5,ipady=5)

    windows.mainloop()

bu()



    